<!--{template admin/header}-->
<body id="homepage">
    <div id="breadcrumb">
        <ul>
            <li><img src="static/img/icons/icon_breadcrumb.png"
                     alt="Location" /></li>
            <li><strong>位置:</strong></li>
            <li><a href="admin.php">主页</a> - 日记统计</li>
        </ul>
    </div>
    <div id="rightside">
        <div class="contentcontainer user_info">
            <div class="headings altheading">
                <h3>日记统计</h3>
            </div>
            <div class="contentbox">
                <div class="extrabottom">
                    <form method="get" action="admin.php" class="form-inline" role="form" >
                    	<div class="input-prepend" id="count_uid">
							<span class="add-on">用户</span>
							<input class="span2" id="prependedInput" type="text" placeholder="UID1" name="uid1" value="{$uidsArr[0]}" >
							<input class="span2" id="prependedInput" type="text" placeholder="UID2" name="uid2" value="{$uidsArr[1]}" >
						</div>
						<div class="input-prepend" id="count_uid">
					    	<span id='count_level' class="input-prepend">
					    		<span class="add-on">关键词</span>
					    		<input type='text' name='title' class='span2' id="prependedInput" value="{$title}"/>
					    	</span> 
					    </div>
                		排序选择:
                        <select name="orderby" class="span2" >
                       	 	<option value="commentTimes"{$orderbyArr['commentTimes']}>评论数</option>
                       	 	<option value="likeTimes"{$orderbyArr['likeTimes']}>喜欢数 </option>
                       	 	<option value="viewTimes"{$orderbyArr['viewTimes']}>查看数 </option>
                       	 	<option value="shareTimes"{$orderbyArr['shareTimes']}>分享数 </option>
                       	 	<option value="time"{$orderbyArr['time']}>发布时间 </option>
                       		<option value="commentPeople"{$orderbyArr['commentPeople']}>评论人数 </option>
                        </select>
                        <select name="ordersc" class="span2" >
                       	 	<option value="desc"{$orderscArr['desc']}>降序</option>
                       	 	<option value="acs"{$orderscArr['acs']}>升序</option>
                       	</select>
                       	选择表:
                       	<select name="sheetNum" class="span1" >
                       	 	<option value="0"{$sheetNumArr[0]}>0</option>
                       	 	<option value="1"{$sheetNumArr[1]}>1</option>
                       	 	<option value="2"{$sheetNumArr[2]}>2</option>
                       	 	<option value="3"{$sheetNumArr[3]}>3</option>
                       	 	<option value="4"{$sheetNumArr[4]}>4</option>
                       	 	<option value="5"{$sheetNumArr[5]}>5</option>
                       	 	<option value="6"{$sheetNumArr[6]}>6</option>
                       	 	<option value="7"{$sheetNumArr[7]}>7</option>
                       	 	<option value="8"{$sheetNumArr[8]}>8</option>
                       	 	<option value="9"{$sheetNumArr[9]}>9</option>
                       	 	<option value="10"{$sheetNumArr[10]}>10</option>
                       	 	<option value="11"{$sheetNumArr[11]}>11</option>
                       	 	<option value="12"{$sheetNumArr[12]}>12</option>
                       	 	<option value="13"{$sheetNumArr[13]}>13</option>
                       	 	<option value="14"{$sheetNumArr[14]}>14</option>
                       	 	<option value="15"{$sheetNumArr[15]}>15</option>
                       	 	<option value="16"{$sheetNumArr[16]}>16</option>
                       	 	<option value="17"{$sheetNumArr[17]}>17</option>
                       	 	<option value="18"{$sheetNumArr[18]}>18</option>
                       	 	<option value="19"{$sheetNumArr[19]}>19</option>
                       	 	<option value="20"{$sheetNumArr[20]}>20</option>
                       	 	<option value="21"{$sheetNumArr[21]}>21</option>
                       	 	<option value="22"{$sheetNumArr[22]}>22</option>
                       	 	<option value="23"{$sheetNumArr[23]}>23</option>
                       	 	<option value="24"{$sheetNumArr[24]}>24</option>
                       	 	<option value="25"{$sheetNumArr[25]}>25</option>
                       	 	<option value="26"{$sheetNumArr[26]}>26</option>
                       	 	<option value="27"{$sheetNumArr[27]}>27</option>
                       	 	<option value="28"{$sheetNumArr[28]}>28</option>
                       	 	<option value="29"{$sheetNumArr[29]}>29</option>
                       	 	<option value="30"{$sheetNumArr[30]}>30</option>
                       	 	<option value="31"{$sheetNumArr[31]}>31</option>
                       	 </select>
                       	 显示选择:<select name="perpage" class="span2" >
                            <option value="20"{$perpageArr[20]}>每页显示20个</option>
                            <option value="50"{$perpageArr[50]}>每页显示50个</option>
                            <option value="100"{$perpageArr[100]}>每页显示100个</option>
                         </select>
                         <div id="show" class="input-prepend" style="margin:10px 0px;" >
                         	<span id='count_level' class="input-prepend">
					    		<span class="add-on">查看数</span>
					    		<input type='text' name='viewTimes1' class='span1' id="prependedInput" value="{$viewTimesArr[0]}"/>
					    		<input type='text' name='viewTimes2' class='span1' id="prependedInput" value="{$viewTimesArr[1]}"/>
					    	</span>
					    	<span id='count_level' class="input-prepend">
					    		<span class="add-on">喜欢数</span>
					    		<input type='text' name='likeTimes1' class='span1' id="prependedInput" value="{$likeTimesArr[0]}"/>
					    		<input type='text' name='likeTimes2' class='span1' id="prependedInput" value="{$likeTimesArr[1]}"/>
					    	</span>
					    	<span id='count_level' class="input-prepend">
					    		<span class="add-on">评论数</span>
					    		<input type='text' name='commentTimes1' class='span1' id="prependedInput" value="{$commentTimesArr[0]}"/>
					    		<input type='text' name='commentTimes2' class='span1' id="prependedInput" value="{$commentTimesArr[1]}"/>
					    	</span>
					    	<span id='count_level' class="input-prepend">
					    		<span class="add-on">查看数</span>
					    		<input type='text' name='viewTimes1' class='span1' id="prependedInput" value="{$viewTimesArr[0]}"/>
					    		<input type='text' name='viewTimes2' class='span1' id="prependedInput" value="{$viewTimesArr[1]}"/>
					    	</span>
					    	<span id='count_level' class="input-prepend">
					    		<span class="add-on">评论人数</span>
					    		<input type='text' name='commentPeople1' class='span1' id="prependedInput" value="{$commentPeopleArr[0]}"/>
					    		<input type='text' name='commentPeople2' class='span1' id="prependedInput" value="{$commentPeopleArr[1]}"/>
					    	</span>
					    	
					    	<span id='count_level' class="input-prepend">
					    		<span class="add-on">发布时间</span>
					    		<input type='text' name='time1' class='span2' id="prependedInput" value="{$timeArr[0]}"/>
					    		<!--{if $timeArr[1]}-->
					    		<input type='text' name='time2' class='span2' id="prependedInput" value="{$timeArr[1]}"/>
					    		<!--{else}-->
					    		<input type='text' name='time2' class='span2' id="prependedInput" value="{$nowTime}"/>
					    		<!--{/if}-->
					    	</span>
                         </div>
                         <input type="hidden" value="count_diary" name="ac">
                         <input type="hidden" value="2" name="op">
                         <input type="hidden" value="1" name="query">
                         <input type="submit" value="查询" class="btn" /> 
                    </form>
                </div>
                <div style="clear: both;"></div>
                <table width="100%" class="table table-striped">
                    <thead>
                        <tr>
                            <th>日记标题 - id</th>
                            <th>日记发布者id</th>
                            <th>日记略语</th>
                            <th>发表时间</th>
                            <th>评论数</th>
                            <th>喜欢数</th>
                            <th>查看数 </th>
                            <th>分享数</th>
                            <th>评论人数</th>
                            <th>操作</th>
                        </tr>
                    </thead>
                    <tbody>
                    	<!--{loop $result $value}-->
                        <tr>
                            <td><a href="admin.php?ac=diary&op=getDiaryAllInfo&bodyId={$value[bodyId]}&uid={$value[uid]}" target="_blank">{$value[title]}/{$value[bodyId]}</a></td>
                            <td><a target="_blank" title="$value[nickname]" href="admin.php?ac=user&uid={$value[uid]}">{$value[uid]}</a></td>
                            <td><a href="admin.php?ac=diary&op=getDiaryAllInfo&bodyId={$value[bodyId]}&uid={$value[uid]}" target="_blank"><!--{eval echo getstr($value[abbreviation], 50, 1, 0);}--></a></td>
                            <td><!--{date('Y-m-d H:i:s',$value[time])}--></td>
                            <td>{$value[commentTimes]}</td>
                            <td>{$value[likeTimes]}</td>
                            <td>{$value[viewTimes]}</td>
                            <td>{$value[sharTimes]}</td>
                            <td>{$value[commentPeople]}</td>
                            <td>
                            	<a style="font-size:30px;" href="admin.php?ac=diarycomments&uid={$value[uid]}&bodyId={$value[bodyId]}&query=1" target="_blank">
                            		<img src="static/img/icons/gif_sms.gif" width="24" height="24" />
                            	  </a>&nbsp;
                            	<a href="admin.php?ac=diary&op=getDiaryAllInfo&bodyId={$value[bodyId]}&uid={$value[uid]}" target="_blank"><img
                                        src="static/img/icons/gif_view.gif" width="24" height="24" /></a>&nbsp;
                                <a href="admin.php?ac=user&uid={$value[uid]}" target="_blank">
                            	<img src="static/img/icons/gif_people.gif" width="24" height="24" /></a>
                            </td>
                        </tr>
                        <!--{/loop}-->
                    </tbody>
                </table>
                <div class="extrabottom">
                    <ul>
                    	<li><img src="static/img/icons/gif_sms.gif" />评论列表</li>
                    	<li><img src="static/img/icons/gif_view.gif" />日记详情</li>
                        <li><img src="static/img/icons/gif_people.gif" />作者信息</li>
                    </ul>
                    <div class="bulkactions">
                        <ul class="pagination">
                            <!--{if $prevpurl!=''}-->
                            <li class="text"><a href="{$firstpurl}" title="">第一页</a></li>
                            <li class="text"><a href="{$prevpurl}" title="">上一页</a></li>
                            <!--{/if}-->
                            <li class="text"><a href="{$nextpurl}" title="">下一页</a></li>
                        </ul>
                        <div style="clear: both;"></div>
                    </div>
                </div>
                <div style="clear: both;"></div>
            </div>
        </div>
    </div>
    <!--{template admin/leftside}-->
    <!--{template admin/footer}-->